package com.qf.springbootproject.controller;

import com.qf.springbootproject.pojo.User;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/jsp")
@Slf4j
@Api(tags = "测试springboot集成JSP接口文档")
public class JSPController {

    @RequestMapping("/test1")
    public String test1(User user, Model model){

      log.info("用户名:{}",user.getUserName());
      model.addAttribute("user",user);
        return "index";
    }
}
